home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Web-Publishing / HTML-Editoren / Alpha ƒ / Help / Filesets Help < prev    next >
Encoding:
Text File  |  2000-12-15  |  12.6 KB  |  389 lines

  1.  
  2. Filesets and the Fileset Menu
  3.  
  4.                                                version: 0.2.0
  5.                                                created: 07/26/99 {03:46:54 pm}
  6.                                            last update: 12/15/00 {04:15:17 pm}
  7.  
  8.  
  9. Filesets are lists of files that Alpha uses for multiple-file searches and
  10. tag searches, among other things.  Typically, a user will set up several
  11. different file sets, for example:
  12.  
  13.   • all html files in a web site
  14.   • all source files in a programming project
  15.   • a local image of a remote cvs code repository
  16.   • all files on a remote ftp site
  17.   • all documents in a multi-part LaTeX document
  18.  
  19. A fileset can be as simple as 'All files recursively contained within a
  20. given directory' or there can be much more complex membership rules.
  21.  
  22. Alpha provides a menu into which you may wish to place your commonly used
  23. filesets.  For each fileset you create, you may decide whether to place it
  24. into the menu (so you can use the mouse to select and edit a particular
  25. file), or whether to have it hidden.  Hidden filesets are fully functional
  26. in every way to every other part of Alpha which interacts with filesets;
  27. they are simply not shown in the menu.
  28.  
  29. In fact Alpha creates some 'hidden' filesets which you can use.  One of
  30. these is a fileset containing all recently used files; another is a fileset
  31. containing all currently open windows.  The reason these filesets are
  32. 'hidden' is that they are updated very frequently, and already feature in
  33. the Windows and Recent-Files menus, so there is little need for them to
  34. appear in the fileset menu.
  35.  
  36.            Activating the Fileset menu
  37.  
  38. The Fileset menu, like all of Alpha's menus, is activated in the dialog
  39. "Config --> Preferences --> Menus…".  Check the 'Fileset Menu' box among
  40. the global menus, and it should appear in the menu bar.  For new users it
  41. is automatically activated by default, so it should already be in the menu
  42. bar.  If icons are used in your menu bar, this menu looks like a stack of
  43. overlapping documents.  If icons are not used, then this menu is simply
  44. called 'Fileset'.
  45.  
  46.            Getting started
  47.  
  48. As an introductory example this section describes how to create a new 
  49. fileset with all files in a folder.
  50.  
  51. • Create a new fileset by selecting 'New Fileset…' in the Utilities submenu 
  52.   of the Fileset Menu.
  53. • You are now asked which type of fileset you want. Select 
  54.   'From Directory' to create a fileset with the files in a folder.
  55. • You are now asked to give the fileset a name. Let's give it the name 'My 
  56.   fileset'.
  57. • Then you are asked to select the folder for the fileset.  Select a
  58.   folder/directory containing files you might like quick access to.
  59. • Next you are asked to give a pattern for the fileset specifying which files 
  60.   in the folder to include in the fileset. To include all files use the 
  61.   default pattern '*'. See the section File Patterns in the Alpha manual to 
  62.   learn about how to specify file patterns.
  63. • Next you are asked to specify a list of patterns for files you want to 
  64.   exclude from the fileset but which were included by the file pattern you 
  65.   just specified. Leave this blank for now.
  66. • Finally you are asked if you want save the fileset. Doing so will make 
  67.   Alpha keep the fileset the next time you run Alpha.
  68.  
  69. Alpha now builds a new submenu of the Fileset menu called 'My fileset'
  70. with all the files in the folder you selected.  Selecting a file in the
  71. submenu will open the file in Alpha.
  72.  
  73. Your fileset can also be used for multi-file searching. In the Find dialog 
  74. when selecting multi file searching, you can choose to search the files in 
  75. your fileset.
  76.  
  77. You can also do multi file search and replace in your fileset, by 
  78. selecting 'Replace In Fileset' in the Utilities menu.
  79.  
  80.            Fileset types
  81.  
  82. Some fileset types require that you give file patterns specifying which 
  83. files to include in the fileset. Read the Section File Patterns in the 
  84. Alpha manual to learn about how to specify file patterns.
  85.  
  86.     From Directory          
  87.  
  88. The basic type: create a fileset of all files in a given folder which match
  89. a given pattern.  You have to specify:
  90.  
  91. • The folder with the files.
  92. • A file pattern matching the files to include.
  93. • A list of patterns of files to exclude.
  94.                         
  95.     From Hierarchy          
  96.  
  97. Takes the above one step further and allows filesets to include all files
  98. in a nested set of folders.  You have to specify:
  99.  
  100. • The base folder with the files.
  101. • The depth of nested folders.
  102. • A file pattern matching the files to include.
  103.  
  104.     Recurse In              
  105.  
  106. A simplification of 'From Hierarchy' which includes all files contained in
  107. the given base folder.  Hence you only need to specify: 
  108.  
  109. • The base folder with the files.
  110.  
  111.     From Open Windows       
  112.  
  113. Make a fileset containing all currently open windows.
  114.  
  115.     Codewarrior             
  116.  
  117. Query the Codewarrior IDE for a list of all files in the current project.
  118.  
  119.     Think                   
  120.  
  121. Query the Symantec Project Manager for a list of all files in the current
  122. project.
  123.  
  124.     Tex                     
  125.  
  126. Make a fileset of all parts of a multi-part TeX/LaTeX document.  Alpha's
  127. LaTeX mode understands these and will automatically send your TeX
  128. application the base .tex/.ltx file when you select 'Typeset' on any
  129. component part.  Details about TeX filesets can be found in the LaTeX mode
  130. documentation.
  131.  
  132.     Ftp                     
  133.  
  134. Make a fileset of files at a remote machine via ftp.  You have to specify:
  135.  
  136.   • Host, path (optional), user id, and password
  137.   • A regular expression (not a file pattern!) matching the files to include.
  138.  
  139.     Procedural              
  140.  
  141. Make a fileset from a Tcl procedure.  This type requires that you write a
  142. Tcl procedure which returns a list of paths to all files in the fileset. 
  143. When you create a new procedural fileset Alpha puts an empty procedure
  144. (with the correct name!)  in your global preferences file.  You must then
  145. write the body of this procedure.  Procedural filesets are completely
  146. dynamic and will not appear in the Fileset menu.
  147.  
  148.  
  149. The following items will be added to the utilities menu if you use 
  150. TeX filesets:
  151.  
  152.     Extract Eps BoxSizes    
  153.  
  154. Search all document parts for included eps graphics, extract bounding box
  155. information from the .eps files and insert it explicitly into the document
  156. (can lead to much quicker typesetting).
  157.  
  158.     Delete Eps Box Sizes    
  159.  
  160. Remove all the above bounding box information
  161.  
  162.     Hierarchical Bib Files  
  163.  
  164. Bibliography files may \input others, so they should be searched (the
  165. default is not to do this, because .bib files may be enormous).
  166.  
  167.  
  168.            Non-text files
  169.  
  170. By default only text files are included in the fileset.  If the flag
  171. 'Include Non Text Files' is set, the fileset menu may contain files Alpha
  172. is not designed to open; these are sent to the Finder which will open them
  173. using whichever application created them.  A common use of this feature is
  174. a hierarchical fileset containing a complete C or C++ project.  Selecting
  175. any project source file will open that file for editing, and selecting the
  176. project file/debugging symbol file/...  will open that using appropriate
  177. tool (Symantec Project Manager or Codewarrior IDE or Debugger,…) Another
  178. use can be to include images in a home page so you can quickly open them
  179. when you want to change the graphics.
  180.  
  181.            Fileset cache
  182.  
  183. Rather than rebuilding the Fileset menu every time you launch Alpha, the
  184. menu is saved in a cache file.  This is to speed up launching of Alpha as
  185. building the filesets may take a while if there are many of them. 
  186. Therefore the fileset submenus may become out of date and you have to
  187. rebuild them.  You can rebuild a single fileset either using 'Update
  188. Current Fileset' or 'Update A Fileset…' or rebuild them all using 'Rebuild
  189. All Filesets'.
  190.  
  191.            Current Fileset
  192.  
  193. Some functions that use filesets operate on the 'current' fileset.  The
  194. current file set can be selected in the 'Choose' submenu of the Utilities
  195. menu.  There is also a flag 'Auto Adjust Fileset' which will switch the
  196. current filesets whenever the fileset menu is used to open a file.
  197.  
  198.  
  199.     ======================================================================
  200.  
  201.  
  202.            Fileset Utilities
  203.  
  204. The fileset utilities menu contains the following items:
  205.  
  206.     Edit Filesets…          
  207.  
  208. allows you to modify all details of all the filesets you have created.  It
  209. also allows you to edit additional information which some packages might
  210. attach to each fileset (for example, whether to use a version control
  211. system for the files, or whether to use a particular tab size setting).
  212.  
  213.     New Fileset…            
  214.  
  215. Create a new fileset of one of the above six standard types (others may be
  216. added by writing your own Tcl code, see below.)
  217.  
  218.     Delete Fileset…         
  219.  
  220. Remove a fileset, permanently if desired.
  221.  
  222.     Print Fileset…          
  223.  
  224. Print all files in a fileset
  225.  
  226.     Update Current Fileset  
  227.  
  228. Re-build the current fileset from scratch
  229.  
  230.     Update A Fileset (hold down option)
  231.  
  232. Lets you choose a fileset to rebuild.
  233.  
  234.     Rebuild All Filesets    
  235.  
  236. Total menu rebuild, including all ftp filesets.
  237.  
  238.     Choose                  
  239.  
  240. A menu from which to set the current fileset.
  241.  
  242.     Hide Fileset            
  243.  
  244. If you have many filesets, some of which are only used for searching
  245. purposes, you can remove them from the menu.
  246.  
  247.     Fileset Flags           
  248.  
  249. See below for an explanation of the flags.   
  250.  
  251.     Find Tag                
  252.  
  253. See Tags for information on this and the following item.
  254.  
  255.     Create Tag File 
  256.  
  257. The items below may not all work for all types of filesets.
  258.  
  259.     Browse Fileset…         
  260.  
  261. Opens a browser window containing all fileset items, from which any can be
  262. opened.
  263.  
  264.     Close Entire Fileset…   
  265.  
  266. Close all windows which belong to a given fileset.
  267.  
  268.     Fileset To Alpha…       
  269.  
  270. Convert all text files in a fileset to Alpha's creator.
  271.  
  272.     Open Entire Fileset…    
  273.  
  274. Open all files in a fileset
  275.  
  276.     Open Fileset Folder…    
  277.  
  278. Tells the Finder to open the base folder which contains a fileset.
  279.  
  280.     Rename Fileset…         
  281.  
  282. Change a fileset's name
  283.  
  284.     Replace In Fileset…     
  285.  
  286. Global search and replace in all files.  Use this item with care!
  287.  
  288.     Stuff Fileset…          
  289.  
  290. If you have 'DropStuff' installed, you can archive a fileset.
  291.  
  292.     Word Count              
  293.  
  294. Count all words in a fileset.
  295.  
  296.  
  297.     Fileset Preferences
  298.  
  299. The following flags may be set:
  300.  
  301.     Auto Adjust Fileset     
  302.  
  303. Opening a file from the menu will adjust current fileset
  304.  
  305.     Include Non Text Files  
  306.  
  307. Files not of type 'TEXT' may be in the menu.
  308.  
  309.     Indent Fileset Items    
  310.  
  311. Visually format submenus if appropriate.
  312.  
  313.     Sort Fileset Items      
  314.  
  315. Force alphabetical ordering for all filesets
  316.  
  317.     Sort Filesets By Type   
  318.  
  319. Structure the fileset menu in a user-defined, type- dependent fashion; see 
  320. the "Personalisation" section below.
  321.  
  322.  
  323.     ======================================================================
  324.  
  325.  
  326.            Additional fileset information
  327.  
  328.  
  329. Some packages may attach pieces of data to each fileset.  Examples could be
  330. the default tab size to use for a fileset (useful if the files use a
  331. different value to your own global default), or the type of version control
  332. under which the files are registered.
  333.  
  334. Authors of Tcl extensions to Alpha use the proc: fileset::attachNewInformation
  335. to add such data.  It automatically appears in the 'Edit Filesets' dialog.
  336.  
  337.  
  338.            Personalisation
  339.  
  340. As well as adjusting the aforementioned flags, the fileset menu allows
  341. complete user control of the structure of the menu in the following way:
  342. Set the 'Sort Filesets By Type' flag, and set the variable
  343. "filesetSortOrder" as follows:
  344.  
  345. The structure of this variable dictates how the fileset menu is structured:
  346.        
  347.     '{pattern p}' 
  348.     
  349. Lists all filesets which match 'p'
  350.  
  351.     '-' 
  352.  
  353. Adds a separator line
  354.  
  355.     '{list of types}' 
  356.  
  357. Lists all filesets of those types.
  358.  
  359.     '{submenu name sub-order-list}' 
  360.     
  361. Adds a submenu with name 'name' and recursively adds filesets to that
  362. submenu as given by the sub-order.
  363.            
  364. Leading, trailing and double separators are automatically removed.
  365.  
  366. For example, the default value of this variable (more as an example than 
  367. anything else) is:
  368.  
  369.     set filesetSortOrder { {pattern *System} {pattern Packages} \
  370.       {pattern Menus} {pattern Modes} {pattern Preferences} \
  371.       - {tex} - {pattern *.cc} {submenu Headers {pattern *.h}} \
  372.       - {fromDirectory think codewarrior ftp \
  373.       fromOpenWindows fromHierarchy} * }
  374.  
  375. You can and should over-ride this in your global preferences file (copy and
  376. paste from here into a "prefs.tcl" file, then make your changes).
  377.  
  378.  
  379.            Known problems with Alpha 7.x
  380.  
  381.  
  382. Alpha 7.x has hard-coded limits on the maximum number of items in a dialog. 
  383. The "Edit Filesets" dialog, if you have many filesets (and have activated
  384. packages which attach additional information to each fileset), can easily
  385. surpass those limits, and the action will simply fail.  In this case you
  386. will have to use the "Utilities --> Edit A Fileset" menu item.  These
  387. hard-coded limits have been massively increased in Alpha 8.
  388.  
  389.